package com.ctshk.rpc.starvip.req.transaction;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author 李新科
 * @date 2021/6/29 10:17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "StarVipTransactionIntegralReq", description = "StarVipTransactionIntegralReq")
public class StarVipTransactionIntegralReq implements Serializable {

    @ApiModelProperty(value = "会员id",required = true)
    @NotBlank(message = "会员id不能为空")
    private String memberId;

    @ApiModelProperty(value = "应收金额",required = true)
    @NotNull(message = "应收金额不能为空")
    private BigDecimal receivableAmount;

    @ApiModelProperty(value = "业务类型")
    private Integer businessType;

    @ApiModelProperty(value = "汇率",required = true)
    private BigDecimal exchangeRate = BigDecimal.ZERO;

}
